package org.itboys.core.entity.mysql;

import org.itboys.core.entity.mongo.SundayCouponOrderSKU;
import org.itboys.core.entity.mongo.SundayCouponOrderSubstract;
import org.itboys.core.entity.mongo.SundayCouponSKU;
import org.itboys.core.entity.mongo.SundayCouponSubstract;
import org.itboys.mysql.entity.BaseMySqlEntity;

import java.util.List;

/**
 * @Author：贾琦磊
 * @Date：2018/8/30
 * @Description：促销单
 */
public class SundayCouponOrder extends BaseMySqlEntity{
    /**
     * 编号
     */
    private String number;
    /**
     * 状态
     */
    private Integer state;
    /**
     * 备注
     */
    private String remark;
    /**
     * 生效日期
     */
    private String startDate;
    /**
     * 失效日期
     */
    private String endDate;
    /**
     * 促销方式
     */
    private Integer couponWay;
    /**
     * 销售区域
     */
    private Integer saleArea;
    /**
     * 优惠券相关sku集合、满减集合、用户范围集合
     */
    private List<SundayCouponOrderSKU> couponSKUS;
    private List<Integer> userTypes;
    private SundayCouponOrderSubstract substract;

    public SundayCouponOrder() {
    }

    public SundayCouponOrder(String startDate, String endDate, Integer couponWay, Integer saleArea, Integer state) {
        this.startDate = startDate;
        this.endDate = endDate;
        this.couponWay = couponWay;
        this.saleArea = saleArea;
        this.state = state;
    }


    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Integer getCouponWay() {
        return couponWay;
    }

    public void setCouponWay(Integer couponWay) {
        this.couponWay = couponWay;
    }

    public Integer getSaleArea() {
        return saleArea;
    }

    public void setSaleArea(Integer saleArea) {
        this.saleArea = saleArea;
    }

    public List<SundayCouponOrderSKU> getCouponSKUS() {
        return couponSKUS;
    }

    public void setCouponSKUS(List<SundayCouponOrderSKU> couponSKUS) {
        this.couponSKUS = couponSKUS;
    }

    public List<Integer> getUserTypes() {
        return userTypes;
    }

    public void setUserTypes(List<Integer> userTypes) {
        this.userTypes = userTypes;
    }

    public SundayCouponOrderSubstract getSubstract() {
        return substract;
    }

    public void setSubstract(SundayCouponOrderSubstract substract) {
        this.substract = substract;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("SundayCouponOrder{");
        sb.append("number='").append(number).append('\'');
        sb.append(", state=").append(state);
        sb.append(", remark='").append(remark).append('\'');
        sb.append(", startDate='").append(startDate).append('\'');
        sb.append(", endDate='").append(endDate).append('\'');
        sb.append(", couponWay=").append(couponWay);
        sb.append(", saleArea=").append(saleArea);
        sb.append('}');
        return sb.toString();
    }
}
